/*
 * Button.h
 *
 *  Created on: 19.04.2011
 */

#ifndef BUTTON_H_
#define BUTTON_H_
//#include <WProgram.h>
#include "Arduino.h"

class Button
{
	int buttonState;             // the current reading from the input pin
	int lastButtonState;   // the previous reading from the input pin
	long lastDebounceTime;  // the last time the output pin was toggled
	long debounceDelay;    // the debounce time; increase if the output flickers
	int buttonPin;
	int reading;

public:
	Button(int pin);
	int getKey();
};

#endif /* BUTTON_H_ */
